import DynaTableView from "@/components/view/DynaTableView";
import {Component, ComponentProps, Hook, VueComponent} from 'vue3-oop'
import { SkipSelf } from 'injection-js'
import RouterService from '@/service/RouterService'

interface IProps {}
@Component()
export default class CusTableView extends VueComponent<IProps> {
  static defaultProps: ComponentProps<IProps> = {}

  constructor(
    @SkipSelf() private routerService: RouterService
  ) {
    super();
  }

  render() {

    const currentRoute = this.routerService.currentRoute;
    const info = currentRoute.params.info as string;

    return (
      <DynaTableView
        maxHeight={500}
        info={info}
      />
    )
  }
}
